package com.example.demo.service;

import com.example.demo.entity.Comment;
import com.example.demo.entity.UserAward;
import lombok.Data;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

public interface CommentService {
    int userComment(UserAward userAward, String content, String image, String commentDate, Integer score) throws ParseException;
    int userReply(Comment comment, String reply, String image, String date, String openId) throws ParseException;
    int businessReplyComment(Integer commentId, String reply, String image, String date) throws ParseException;
    Comment getOrderComment(String orderId);
    List<Comment> getCommentChildren(String orderId, List<Comment> commentList);
    List<Comment> getCommentList(Integer businessId, String startTime, String endTime, String goodName, Integer score, Integer ifHaveReply) throws ParseException;
    Integer deleteComment(Integer commentId);
}
